<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/pages/common/taglib.jsp"%>
<html>
	<head>
		<title>新增新闻</title>
		<style>
			form {
				margin: 0;
			}
			textarea {
				display: block;
			}
		</style>
		<link rel="stylesheet" href="../editor/themes/default/default.css" />
		<script charset="utf-8" src="../editor/kindeditor-min.js"></script>
		<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
		<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					resizeType : 1,
					allowPreviewEmoticons : true,
					allowImageUpload : true,
					allowFileManager : true,
					items : [
						'source', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist',
						'insertunorderedlist', '|', 'image', 'link']
				});
			});
		</script>
	</head>
	<body>
		<h3>新增新闻</h3>
		<s:form id="id_newsform" name="newsform" action="add" namespace="/news" method="post">
			标题：<input type="text" name="title" id="title" />
			<br />
			作者：<input type="text" name="writers" id="writers" />
			<br />
			内容：<textarea name="content" style="width:700px;height:200px;visibility:hidden;"></textarea>
			<br />
            <input type="submit" name="submit" value="提交"/>
		</s:form>
	</body>
</html>